#pragma once

#define LOGFILE_AUTO_CLOSE_TIMEOUT   (1000*60*30)

class CLogFile
{
public:
	CLogFile(void);
	~CLogFile(void);

	int Open( LPCTSTR lpFileName);
	int WriteLine( const wchar_t *format, ... );
	int Close(void);

	wstring GetHtmlLog(void);

protected:

	HANDLE m_hFile;

	int   m_nLineCount;

	wstring  m_strHtmlLog;

public:
	int IsOpen(void);
};
